package com.ruoyi.customer.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;



/**
 * 业绩星级视图对象 grade_config
 *
 * @author ruoyi
 * @date 2023-09-20
 */
@Data
@ExcelIgnoreUnannotated
public class GradeConfigVo {

    private static final long serialVersionUID = 1L;

    /**
     * 配置ID
     */
    @ExcelProperty(value = "配置ID")
    private Long id;

    /**
     * 开始金额
     */
    @ExcelProperty(value = "开始金额")
    private String startPrice;

    /**
     * 结束金额
     */
    @ExcelProperty(value = "结束金额")
    private String endPrice;

    /**
     * 等级
     */
    @ExcelProperty(value = "等级")
    private String grade;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Integer sort;

    /**
     * 比率（%）
     */
    @ExcelProperty(value = "比率", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private String ratio;

    /**
     * 用户类型
     */
    @ExcelProperty(value = "用户类型")
    private String userType;

    /**
     * 状态（1正常 0停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=正常,0=停用")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建者id
     */
    @ExcelProperty(value = "创建者id")
    private Long createId;

    private String gradeName;


}
